package com.pine.common.database.interceptor;

import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import com.baomidou.mybatisplus.extension.plugins.pagination.dialects.MySqlDialect;
import lombok.extern.slf4j.Slf4j;

/**
 * mysql 分页拦截器
 *
 * @author pine manage
 * @since 2024-08-09
 */
@Slf4j
public class MysqlPaginationInnerInterceptor extends PaginationInnerInterceptor {

    public MysqlPaginationInnerInterceptor() {
        super(DbType.MYSQL);
        super.setDialect(new MySqlDialect());
    }
}
